package com.sright.bcard.user.dal.dao.impl;

import com.sright.bcard.common.service.share.base.dao.BaseDAOImpl;
import com.sright.bcard.common.service.share.base.dao.BaseMapper;
import com.sright.bcard.user.dal.dao.CardConnectUserInfoDAO;
import com.sright.bcard.user.dal.entity.CardConnectUserInfoDO;
import com.sright.bcard.user.dal.entity.param.ConnnectUserListParam;
import com.sright.bcard.user.dal.entity.result.ConnnectUserListDO;
import com.sright.bcard.user.dal.mapper.CardConnectUserInfoDOMapper;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
public class CardConnectUserInfoDAOImpl extends BaseDAOImpl<CardConnectUserInfoDO> implements CardConnectUserInfoDAO {

    @Resource
    private CardConnectUserInfoDOMapper cardConnectUserInfoDOMapper;

    @Override
    protected BaseMapper<CardConnectUserInfoDO> getObjMapper() {
        return cardConnectUserInfoDOMapper;
    }

    @Override
    public List<ConnnectUserListDO> connectUserList(ConnnectUserListParam connnectUserListParam) {
        return cardConnectUserInfoDOMapper.connectUserList(connnectUserListParam);
    }

    @Override
    public CardConnectUserInfoDO selectByDeletedUserId(Long userId) {
        return cardConnectUserInfoDOMapper.selectByDeletedUserId(userId);
    }
}
